package com.sign2024.sign2024core.entry.goodsmaterials;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 物资专家专业与标段对应关系
 *
 * @author yujie
 * @data 2024/8/26 9:19
 */
@ApiModel("物资专家专业与标段对应关系")
@Data
@HeadRowHeight(value = 30) // 头部行高
@ContentRowHeight(value = 25) // 内容行高
@ColumnWidth(value = 30) // 列宽, 可以作用在类或字段上
public class WzSpecialtySignRelation {

    /**
     * ID
     */
    @ExcelIgnore
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("ID")
    private Long id;

    /**
     * 项目任务id
     */
    @ExcelIgnore
    @ApiModelProperty("项目任务id")
    private Integer taskId;

    /**
     * 标段
     */
    @ApiModelProperty("标段")
    @ColumnWidth(value = 40)
    @ExcelProperty(value = "标段")
    private String sectionName;

    /**
     * 专业1
     */
    @ApiModelProperty("专业1")
    @ColumnWidth(value = 40)
    @ExcelProperty(value = "专业1")
    private String majorOne;

    /**
     * 专业2
     */
    @ApiModelProperty("专业2")
    @ExcelProperty(value = "专业2")
    private String majorTwo;

    /**
     * 专业3
     */
    @ApiModelProperty("专业3")
    @ExcelProperty(value = "专业3")
    private String majorThree;

    /**
     * 专业4
     */
    @ApiModelProperty("专业4")
    @ExcelProperty(value = "专业4")
    private String majorFour;

    /**
     * 专业5
     */
    @ApiModelProperty("专业5")
    @ExcelProperty(value = "专业5")
    private String majorFive;

    /**
     * 创建时间
     */
    @ExcelIgnore
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelIgnore
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
